package pzl.com.waitnotify.tasks;

import pzl.com.waitnotify.beans.Resource;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-15]
 */
public class Output implements Runnable {

    private Resource r;

    public Output(Resource r) {
        this.r = r;
    }

    @Override
    public void run() {
        while (true) {
            r.out();
        }
    }

}


